<template>
  <div>
    <Tabs tabPosition="left" v-model:activeKey="activeKey">
      <TabPane v-if="checkPowerByName('interface')" key="1" tab="接口维度">
        <Interface></Interface>
      </TabPane>
      <TabPane v-if="checkPowerByName('tenant')" key="2" tab="租户维度">
        <Tenant></Tenant>
      </TabPane>
    </Tabs>
  </div>
</template>

<script lang="ts" setup>
import { TabPane, Tabs } from 'ant-design-vue';
import { ref } from 'vue';
import Interface from '/@/views/measurement-center/function-statistic/interface.vue';
import Tenant from '/@/views/measurement-center/function-statistic/tenant.vue';
import { checkPowerByName } from '../../../utils/permission';

let activeKey = ref('1');
</script>
